package com.yuexunit.finance.system.action.v1.dto;

import java.util.ArrayList;
import java.util.List;

import com.yuexunit.finance.user.action.v1.model.EmployeeRoleInfo;
import com.yuexunit.permission.action.dto.RoleListDto;


/**
 * @author wenwenlong
 */
public class EmployeeRoleInfoCasotr {
	public static List<EmployeeRoleInfo> toEmployeeRoleInfoList(List<RoleListDto> rl){
		List<EmployeeRoleInfo> el = new ArrayList<EmployeeRoleInfo>();
		for(RoleListDto r: rl){
			EmployeeRoleInfo e = new EmployeeRoleInfo();
			e.setCreateTime(r.getCreateTime());
			e.setRoleId(r.getRoleId());
			e.setRoleName(r.getRoleName());
			el.add(e);
		}
		return el;
	}
}
